package com.mixsmart.commonweb.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.mixsmart.commonweb.bean.entity.TCDict;
import com.mixsmart.commonweb.dao.PKStringDao;
import com.mixsmart.commonweb.dao.TreeDao;

/**
 * 数据字典实现类
 * @author lmq
 * @version 1.0
 * @since JDK版本大于等于1.6
 * 2016年2月1日
 */
@Service
public class DictService extends TreeService<TCDict> {

	@Override
	@Transactional(propagation = Propagation.REQUIRED, readOnly = false)
	public boolean save(TCDict t) {
		return super.saveTree(t);
	}

	@Override
	@Transactional(propagation = Propagation.REQUIRED, readOnly = false)
	public boolean update(TCDict t) {
		return super.updateTree(t);
	}

	@Override
	public PKStringDao<TCDict> getDao() {
		return (TreeDao<TCDict>)dao;
	}
}
